-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add extended tracer module #759
Conversation
@trask I hope this PR makes more sense now - I've kept the idea of being able to wrap a |
d9b8f6c
to
5d0efa7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a little hesitant to introduce too much syntactic sugar on top of opentelemetry-api, since that creates more ways to do the same thing, which could cause confusion
at the same time, it makes sense to have somewhere to experiment with things that we might want to add into the opentelemetry-api itself
we also have opentelemetry-instrumentation-api, which possibly has a little bit of overlap
I left a couple of initial comments, overall I think it might help to pair the PR down and just focus on the Tracing
class at least initially
extended-tracer/src/main/java/io/opentelemetry/contrib/tracer/CurrentSpan.java
Outdated
Show resolved
Hide resolved
extended-tracer/src/main/java/io/opentelemetry/contrib/tracer/Tracing.java
Outdated
Show resolved
Hide resolved
extended-tracer/src/main/java/io/opentelemetry/contrib/tracer/Tracing.java
Outdated
Show resolved
Hide resolved
extended-tracer/src/main/java/io/opentelemetry/contrib/tracer/Tracing.java
Outdated
Show resolved
Hide resolved
1326088
to
150b2be
Compare
I checked
I like that idea and have adjusted the PR accordingly 😄 |
150b2be
to
400525d
Compare
extended-tracer/src/main/java/io/opentelemetry/contrib/tracer/Tracing.java
Outdated
Show resolved
Hide resolved
400525d
to
3206404
Compare
extended-tracer/src/main/java/io/opentelemetry/contrib/tracer/GlobalTracing.java
Outdated
Show resolved
Hide resolved
extended-tracer/src/main/java/io/opentelemetry/contrib/tracer/Tracing.java
Show resolved
Hide resolved
extended-tracer/src/main/java/io/opentelemetry/contrib/tracer/Tracing.java
Outdated
Show resolved
Hide resolved
extended-tracer/src/main/java/io/opentelemetry/contrib/tracer/Tracing.java
Outdated
Show resolved
Hide resolved
e38af50
to
0cb333c
Compare
@trask @jkwatson @jack-berg as discussed yesterday, I've removed GlobalTracer, injected Tracer into Tracing, and added before/after examples. |
- inject Tracer into Tracing, making it easier to use
- clarify error handling strategy
…ed and ended by run/call
…Tracing.java Co-authored-by: Trask Stalnaker <[email protected]>
Co-authored-by: Trask Stalnaker <[email protected]>
Co-authored-by: Trask Stalnaker <[email protected]>
…ThrowingSupplier.java Co-authored-by: Trask Stalnaker <[email protected]>
…Tracing.java Co-authored-by: Trask Stalnaker <[email protected]>
- extract Propagation class with static methods
- extract Propagation class with static methods
- extract Propagation class with static methods
Co-authored-by: Trask Stalnaker <[email protected]>
Co-authored-by: Trask Stalnaker <[email protected]>
62c6e5a
to
11f07bf
Compare
@trask build is passing now 😄 |
thanks @zeitlinger for your patience and incorporating all the feedback! |
The Opentelemetry APIs are rather difficult to use - therefore I've developed the following utility method, which is part of a company internal library - so it has already been tested by some users.
Based on this PR, I'm now creating a PR here.